Example
struct ContentView: View {
var body: some View {
VStack {
Text("ultraLight").fontWeight(.ultraLight)
Text("thin" ).fontWeight(.thin)
Text("light" ).fontWeight(.light)
Text("regular" ).fontWeight(.regular)
Text("medium" ).fontWeight(.medium)
Text("semibold" ).fontWeight(.semibold)
Text("bold" ).fontWeight(.bold)
Text("heavy" ).fontWeight(.heavy)
Text("black" ).fontWeight(.black)}
}
}
Output